package a.d.b;

import java.util.Comparator;

public class f
  extends e
{
  private static f c = new f();
  public static int d = 0;
  public static int e = 0;
  public static int f = 0;
  public static int g = 0;
  protected boolean h = true;
  protected boolean i = true;
  protected static final double j = Math.pow(0.5D, 52.0D);
  private Comparator k = new d_();
  private Comparator l = new c_();
  private Comparator m = new a_();
  private Comparator n = new f_();
  private Comparator o = new b_();
  private Comparator p = new g_();
  private Comparator q = new e_();
  public static boolean r;
  
  public static f c()
  {
    return c;
  }
  
  public void e()
  {
    d = 0;
    e = 0;
    f = 0;
    g = 0;
  }
  
  public Object e(Object paramObject1, Object paramObject2)
  {
    return new p((d)paramObject1, (d)paramObject2, this);
  }
  
  public boolean j(Object paramObject1, Object paramObject2)
  {
    a locala = (a)paramObject1;
    if (!e.b) {}
    return locala.c(paramObject2) > 0;
  }
  
  public Object[] k(Object paramObject1, Object paramObject2)
  {
    a locala = (a)paramObject1;
    return locala.e(paramObject2);
  }
  
  public boolean i(Object paramObject1, Object paramObject2)
  {
    p localp = (p)paramObject1;
    d locald = (d)paramObject2;
    return localp.b(locald);
  }
  
  public boolean h(Object paramObject1, Object paramObject2)
  {
    p localp = (p)paramObject1;
    d locald = (d)paramObject2;
    return localp.a(locald);
  }
  
  public Object g(Object paramObject1, Object paramObject2)
  {
    p localp1 = (p)paramObject1;
    p localp2 = (p)paramObject2;
    return localp1.c(localp2);
  }
  
  public Object f(Object paramObject1, Object paramObject2)
  {
    p localp1 = (p)paramObject1;
    p localp2 = (p)paramObject2;
    return localp1.b(localp2);
  }
  
  public Object c(Object paramObject)
  {
    return ((p)paramObject).a();
  }
  
  public Object d(Object paramObject)
  {
    return ((p)paramObject).b();
  }
  
  public x g(Object paramObject)
  {
    return ((d)paramObject).a();
  }
  
  public x h(Object paramObject)
  {
    return ((d)paramObject).b();
  }
  
  public x i(Object paramObject)
  {
    return ((d)paramObject).c();
  }
  
  public double j(Object paramObject)
  {
    return ((d)paramObject).d();
  }
  
  public double k(Object paramObject)
  {
    return ((d)paramObject).f();
  }
  
  public double l(Object paramObject)
  {
    return ((d)paramObject).g();
  }
  
  public x a(Object paramObject)
  {
    return new w(j(paramObject) / l(paramObject));
  }
  
  public x b(Object paramObject)
  {
    return new w(k(paramObject) / l(paramObject));
  }
  
  public Comparator f()
  {
    return this.q;
  }
  
  public double c(Object paramObject1, Object paramObject2)
  {
    q localq1 = (q)paramObject1;
    q localq2 = (q)paramObject2;
    return localq1.d(localq2);
  }
  
  public Object a(Object paramObject1, Object paramObject2)
  {
    d locald1 = (d)paramObject1;
    d locald2 = (d)paramObject2;
    return locald2.a(locald1);
  }
  
  public Comparator a()
  {
    if (!e.b) {
      if (this.h) {
        return this.k;
      }
    }
    return this.l;
  }
  
  public Comparator b()
  {
    if (!e.b) {
      if (this.h) {
        return this.m;
      }
    }
    return this.n;
  }
  
  public Comparator d()
  {
    if (!e.b) {
      if (this.h) {
        return this.o;
      }
    }
    return this.p;
  }
  
  public int a(Object paramObject1, Object paramObject2, Object paramObject3)
  {
    boolean bool = e.b;
    if (!bool) {
      if (this.i)
      {
        g += 1;
        double d1 = j(paramObject1);
        double d2 = k(paramObject1);
        double d3 = l(paramObject1);
        double d4 = j(paramObject2);
        double d5 = k(paramObject2);
        double d6 = l(paramObject2);
        double d7 = j(paramObject3);
        double d8 = k(paramObject3);
        double d9 = l(paramObject3);
        double d10 = d2 * d6;
        double d11 = d5 * d3;
        double d12 = d1 * d9;
        double d13 = d7 * d3;
        double d14 = d1 * d6;
        double d15 = d4 * d3;
        double d16 = d2 * d9;
        double d17 = d8 * d3;
        double d18 = (d14 - d15) * (d16 - d17) - (d10 - d11) * (d12 - d13);
        d10 = Math.abs(d10);
        d11 = Math.abs(d11);
        d12 = Math.abs(d12);
        d13 = Math.abs(d13);
        d14 = Math.abs(d14);
        d15 = Math.abs(d15);
        d16 = Math.abs(d16);
        d17 = Math.abs(d17);
        double d19 = 40.0D * ((d10 + d11) * (d12 + d13) + (d14 + d15) * (d16 + d17)) * j;
        if (!bool) {
          if (d18 > d19) {
            return 1;
          }
        }
        if (!bool) {
          if (d18 < -d19) {
            return -1;
          }
        }
        if (!bool) {
          if (d19 < 1.0D) {
            return 0;
          }
        }
        g -= 1;
      }
    }
    return c(paramObject1, paramObject2, paramObject3);
  }
  
  protected int b(Object paramObject1, Object paramObject2)
  {
    boolean bool3 = e.b;
    p localp1 = (p)paramObject1;
    p localp2 = (p)paramObject2;
    x localx1 = localp1.c();
    x localx2 = localp2.c();
    x localx3 = localp1.d();
    x localx4 = localp2.d();
    x localx5 = localx1.a();
    boolean bool1 = localp1.equals(localx5);
    boolean bool2 = localp2.equals(localx5);
    if ((bool3) || ((bool2) || ((bool3) || (bool1))))
    {
      if (!bool3) {
        if (bool2)
        {
          if (bool3) {
            break label112;
          }
          if (bool1) {
            return 0;
          }
        }
      }
      label112:
      if (!bool3) {
        if (bool2) {
          return -1;
        }
      }
      return 1;
    }
    x localx6 = localx3.c(localx2).b(localx4.c(localx1));
    int i1 = localx6.d();
    if (!bool3) {}
    return localx1.d() * localx2.d() < 0 ? -i1 : i1;
  }
  
  protected int c(Object paramObject1, Object paramObject2, Object paramObject3)
  {
    f += 1;
    x localx1 = g(paramObject1);
    x localx2 = h(paramObject1);
    x localx3 = i(paramObject1);
    x localx4 = g(paramObject2);
    x localx5 = h(paramObject2);
    x localx6 = i(paramObject2);
    x localx7 = g(paramObject3);
    x localx8 = h(paramObject3);
    x localx9 = i(paramObject3);
    x localx10 = c(b(localx4, localx3), b(localx1, localx6));
    x localx11 = c(b(localx5, localx3), b(localx2, localx6));
    x localx12 = c(b(localx11, c(b(localx1, localx9), b(localx7, localx3))), b(localx10, c(b(localx2, localx9), b(localx8, localx3))));
    return localx12.d();
  }
  
  protected int l(Object paramObject1, Object paramObject2)
  {
    boolean bool = e.b;
    d += 1;
    x localx1 = b(g(paramObject1), i(paramObject2));
    x localx2 = b(g(paramObject2), i(paramObject1));
    if (!bool) {
      if (localx1.f(localx2) < 0) {
        return -1;
      }
    }
    if (!bool) {
      if (localx1.f(localx2) > 0) {
        return 1;
      }
    }
    return 0;
  }
  
  protected int n(Object paramObject1, Object paramObject2)
  {
    boolean bool = e.b;
    d += 1;
    x localx1 = b(h(paramObject1), i(paramObject2));
    x localx2 = b(h(paramObject2), i(paramObject1));
    if (!bool) {
      if (localx1.f(localx2) < 0) {
        return -1;
      }
    }
    if (!bool) {
      if (localx1.f(localx2) > 0) {
        return 1;
      }
    }
    return 0;
  }
  
  protected int o(Object paramObject1, Object paramObject2)
  {
    boolean bool = e.b;
    d += 1;
    x localx1 = b(g(paramObject1), i(paramObject2));
    x localx2 = b(g(paramObject2), i(paramObject1));
    if (!bool)
    {
      if (localx1.f(localx2) < 0) {
        return -1;
      }
      if (bool) {}
    }
    else if (localx1.f(localx2) > 0)
    {
      return 1;
    }
    x localx3 = b(h(paramObject1), i(paramObject2));
    x localx4 = b(h(paramObject2), i(paramObject1));
    if (!bool) {
      if (localx3.f(localx4) < 0) {
        return -1;
      }
    }
    if (!bool) {
      if (localx3.f(localx4) > 0) {
        return 1;
      }
    }
    return 0;
  }
  
  private static x b(x paramx1, x paramx2)
  {
    return paramx1.c(paramx2);
  }
  
  private static x c(x paramx1, x paramx2)
  {
    return paramx1.b(paramx2);
  }
  
  private static x e(x paramx1, x paramx2)
  {
    return paramx1.a(paramx2);
  }
  
  private static x f(x paramx1, x paramx2)
  {
    return paramx1.d(paramx2);
  }
  
  class e_
    implements Comparator, l.j_
  {
    e_() {}
    
    public int compare(Object paramObject1, Object paramObject2)
    {
      return f.this.b(paramObject1, paramObject2);
    }
  }
  
  class c_
    implements Comparator
  {
    c_() {}
    
    public int compare(Object paramObject1, Object paramObject2)
    {
      return f.this.o(paramObject1, paramObject2);
    }
  }
  
  class g_
    implements Comparator
  {
    g_() {}
    
    public int compare(Object paramObject1, Object paramObject2)
    {
      return f.this.n(paramObject1, paramObject2);
    }
  }
  
  class f_
    implements Comparator
  {
    f_() {}
    
    public int compare(Object paramObject1, Object paramObject2)
    {
      return f.this.l(paramObject1, paramObject2);
    }
  }
  
  class d_
    implements Comparator, l.j_
  {
    d_() {}
    
    public int compare(Object paramObject1, Object paramObject2)
    {
      boolean bool = e.b;
      f.e += 1;
      double d1 = f.this.j(paramObject1) * f.this.l(paramObject2);
      double d2 = f.this.j(paramObject2) * f.this.l(paramObject1);
      double d3 = d1 - d2;
      d1 = Math.abs(d1);
      d2 = Math.abs(d2);
      double d4 = 4.0D * (d1 + d2) * f.j;
      if (!bool) {
        if (d3 > d4) {
          return 1;
        }
      }
      if (!bool) {
        if (d3 < -d4) {
          return -1;
        }
      }
      if (!bool)
      {
        if (d4 < 1.0D)
        {
          double d5 = f.this.k(paramObject1) * f.this.l(paramObject2);
          double d6 = f.this.k(paramObject2) * f.this.l(paramObject1);
          d3 = d5 - d6;
          d5 = Math.abs(d5);
          d6 = Math.abs(d6);
          d4 = 4.0D * (d5 + d6) * f.j;
          if (!bool) {
            if (d3 > d4) {
              return 1;
            }
          }
          if (!bool) {
            if (d3 < -d4) {
              return -1;
            }
          }
          if (bool) {
            break label261;
          }
          if (d4 < 1.0D) {
            return 0;
          }
        }
        f.e -= 1;
      }
      label261:
      return f.this.o(paramObject1, paramObject2);
    }
  }
  
  class b_
    implements Comparator, l.j_
  {
    b_() {}
    
    public int compare(Object paramObject1, Object paramObject2)
    {
      boolean bool = e.b;
      f.e += 1;
      double d1 = f.this.k(paramObject1) * f.this.l(paramObject2);
      double d2 = f.this.k(paramObject2) * f.this.l(paramObject1);
      double d3 = d1 - d2;
      d1 = Math.abs(d1);
      d2 = Math.abs(d2);
      double d4 = 4.0D * (d1 + d2) * f.j;
      if (!bool) {
        if (d3 > d4) {
          return 1;
        }
      }
      if (!bool) {
        if (d3 < -d4) {
          return -1;
        }
      }
      if (!bool)
      {
        if (d4 < 1.0D) {
          return 0;
        }
        f.e -= 1;
      }
      return f.this.n(paramObject1, paramObject2);
    }
  }
  
  class a_
    implements Comparator, l.j_
  {
    a_() {}
    
    public int compare(Object paramObject1, Object paramObject2)
    {
      boolean bool = e.b;
      f.e += 1;
      double d1 = f.this.j(paramObject1) * f.this.l(paramObject2);
      double d2 = f.this.j(paramObject2) * f.this.l(paramObject1);
      double d3 = d1 - d2;
      d1 = Math.abs(d1);
      d2 = Math.abs(d2);
      double d4 = 4.0D * (d1 + d2) * f.j;
      if (!bool) {
        if (d3 > d4) {
          return 1;
        }
      }
      if (!bool) {
        if (d3 < -d4) {
          return -1;
        }
      }
      if (!bool)
      {
        if (d4 < 1.0D) {
          return 0;
        }
        f.e -= 1;
      }
      return f.this.l(paramObject1, paramObject2);
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.d.b.f

 * JD-Core Version:    0.7.0.1

 */